#include <iostream>

using namespace std;

int main()
{
    int t = 0, n = 0;
    cin >> t;
    while (t--)
    {
        cin >> n;
        int count = 0, sum = 1;
        while (n > sum)
        {
            sum *= 2;
            ++count;
        }
        if (sum < n)
            ++count;
        cout << count << endl;
    }
    return 0;
}